package com.xiaotao.http.controllers;

import com.xiaotao.http.core.annotation.WebController;
import com.xiaotao.http.core.interfaces.Controller;
import com.xiaotao.http.core.request.HttpRequest;
import com.xiaotao.http.core.response.HttpResponse;
import com.xiaotao.http.core.response.MimeTypeMap;

import java.io.File;
import java.io.IOException;

@WebController("/aoerjia")
public class Aoerjia implements Controller {
    @Override
    public void service(HttpRequest request, HttpResponse response) throws IOException {
        response.sendFile(new File("static/image/aoerjia.gif"), MimeTypeMap.getContentType("jpg"));
    }
}
